<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\LoginSignController;
use App\Http\Controllers\NewsEditController;

Route::get('/', function () {
    return view('app');
});

Route::apiResource('/user',App\Http\Controllers\UserController::class) -> parameter('user','id');
Route::apiResource('/news',App\Http\Controllers\NewsController::class) -> parameter('news','id');

Route::post('/login',[LoginSignController::class,'login']);
Route::post('/sign',[LoginSignController::class,'sign']);
Route::post('/reset',[LoginSignController::class,'reset']);
Route::post('/news/edit/{id}',NewsEditController::class);
